package com.ljpz.web.threadLocal;


import com.ljpz.sso.query.bean.User;

/**
 * Created by liujunchen on 2016/12/24.
 */
public class UserThreadLocal   {
    private static  final  ThreadLocal<User>LOCAL= new ThreadLocal<User>()  ;
    private  UserThreadLocal(){
    }
    public  static  void  set(User  user){
        LOCAL.set(user);
    }
    public  static     User get(){
       return  LOCAL.get();
    }
}
